<?php  
class Student{
    public $name;
    public $age;
    public function say(){
        echo "我是".$this->name;
    }
    function run(){
        echo "跑步";
    }

}
class Car{

}
$stu1= new Student();
$stu2 = new Student;
$stu1->name='zhangsan';
$stu2->age=20;
$stu1->num=1;
var_dump($stu1,$stu2);
// echo $stu1->name;        `
unset ($stu1->num);
// var_dump($stu1,$stu2);
$stu1->say();
$stu1->run();
?>